package com.tengju.bff.interfaces.covercharge.service;

import com.tengju.bff.interfaces.covercharge.entity.po.ServiceLetaxRegistered;
import com.tengju.bff.interfaces.covercharge.entity.dto.ServiceLetaxRegisteredDto;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tengju.bff.interfaces.covercharge.entity.vo.LeTaxRegisteredAndReturnResult;
import com.tengju.bff.interfaces.covercharge.entity.vo.ServiceLetaxRegisteredReturnResult;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 乐税个体户注册表 服务类
 * </p>
 *
 * @author zhaoyi
 * @since 2020-02-24
 */
public interface IServiceLetaxRegisteredService extends IService<ServiceLetaxRegistered> {
    /**
     *获取哪些是公用一个个体工商户信息
     * @param idCodeList
     * @return
     */
    Map<Integer, Boolean> getNumberCommon(List<ServiceLetaxRegisteredDto> idCodeList);

    void updateStatusToEnd(Integer idCode, String platformCode);

    /**
     * 获取乐税注册和返回信息
     * @param idCode 代理id
     * @param platformCode 平台id
     * */
    LeTaxRegisteredAndReturnResult leTaxRegisteredAndReturnInfo(Integer idCode, String platformCode);

    /**
     * 获取乐税注册和返回信息
     * @param id 记录id
     * @return 乐税注册信息
     * */
    LeTaxRegisteredAndReturnResult leTaxRegisteredAndReturnInfoById(Integer id);

    /**
     * 获取token
     * @return
     * */
    String getToken();

    /**
     * 获取商户信息
     * @param idCode
     * @return
     * */
    ServiceLetaxRegisteredReturnResult getMerchantInfo(Integer idCode);

    String h5Login(Integer idCode);

    String registeredCode(Integer idCode);
}
